home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
dev
/
lang
/
pcq12b.lzh
/
Include
/
Utils
/
TimerUtils.i
< prev
Wrap
Text File
|
1990-08-27
|
919b
|
32 lines
{
TimerUtils.i
This file declares CreateTimer, WaitTimer, and DeleteTimer.
They allow you to use the timer.device with relatively little
overhead. Note that, unlike the examples from the ROM Kernel
Manual, these routines use the VBlank unit. Therefore they
require much less overhead, but you should not use these routines
for times of less than half a second.
The source for these routines is in Runtime/Extras.
}
{$I "Include:Exec/Ports.i"}
{$I "Include:Devices/Timer.i"}
Function CreateTimer : TimeRequestPtr;
External;
Function SetTimer(WhichTimer : TimeRequestPtr;
Seconds, Microseconds : Integer) : MsgPortPtr;
External;
Procedure WaitTimer(WhichTimer : TimeRequestPtr;
Seconds, Microseconds : Integer);
External;
Procedure GetSysTime(WhichTimer : TimeRequestPtr; VAR TV : TimeVal);
External;
Procedure DeleteTimer(WhichTimer : TimeRequestPtr);
External;